<% include header %>
<div class="details">
<p id="edit">
  <% if( user && user.name == post.name ){ %>
  <span>
        <a class="edit" href="/edit/<%= post.name %>/<%= post.time.minute %>/<%= post.title %>">编辑</a>
    </span>
  <span>
        <a class="edit" href="/remove/<%= post.name %>/<%= post.time.minute %>/<%= post.title %>">删除</a>
    </span>
  <% } %>
</p>
<p class="editor">
  <span>作者：<a href="/u/<%= post.name %>"><%= post.name %></a></span> |
  <span>发布于：<%= post.time.minute %> </span>|
  <span>标签：
  <% post.tags.forEach(function (tag, index) { %>
  <% if (tag) { %>
  <a class="tag" href="/tags/<%= tag %>"><%= tag %></a>
  <% } %>
  <% }) %>
  </span>
</p>
  <div class="content">
<p><%- post.post %></p>
  </div>
<p class="comment">阅读：<%= post.pv %> | 评论：<%= post.comments.length
    %></p>
</div>
<% include comment %>
<% include footer %>